package br.ufal.tci.nexos.arcolive.descriptors;

public class CommandDescriptor {

	private String classpath;
	private String name;
	private int id;
	
	public CommandDescriptor(int id, String name, String classpath) {
		this.classpath = classpath;
		this.name = name;
		this.classpath = classpath;
	}

	public String getClasspath() {
		return classpath;
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}
	
	public Class getCommandClass() {
		try {
			return Class.forName(this.classpath);
		} catch (ClassNotFoundException e) {
			return null;
		}
	}
	
}
